<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <span>Message: {{ message.split(' ')[0].length == 4 }}</span><br>
        <span>Message: {{ message.split('').reverse().join('') }}</span><br>
        <button v-on:click="change">点击</button><br>

        <hr>
        <div v-html="html">
            {{ html }}
        </div>

        <hr>
        <button v-bind:disabled="isButtonDisabled">按钮</button>
    </div>
    <script src="https://unpkg.com/vue@next"></script>
    <script>
        const App = {
            data() {
                return {
                    message: "test split",
                    html: '<h1> html </h1>',
                    isButtonDisabled: false,
                }
            },
            methods: {
                change() {
                    this.message = "changed"
                }
            },
        }

        Vue.createApp(App).mount("#app")
    </script>
</body>

</html>